
(function($){
	$.fn.Zoomer=function(b){
		var c=$.extend({speedView:200,speedRemove:400,altAnim:false,speedTitle:400,debug:false},b);
		var d=$.extend(c,b);
		function e(s){
			if(typeof console!="undefined"&&typeof console.debug!="undefined"){
				console.log(s)
			}else{
				alert(s)
			}
		}if(d.speedView==undefined||d.speedRemove==undefined||d.altAnim==undefined
				||d.speedTitle==undefined){
			e('speedView: '+d.speedView);
			e('speedRemove: '+d.speedRemove);
			e('altAnim: '+d.altAnim);
			e('speedTitle: '+d.speedTitle);
			return false
		}if(d.debug==undefined){
			e('speedView: '+d.speedView);
			e('speedRemove: '+d.speedRemove);
			e('altAnim: '+d.altAnim);
			e('speedTitle: '+d.speedTitle);
			return false
		}if(typeof d.speedView!="undefined"||typeof d.speedRemove!="undefined"
				||typeof d.altAnim!="undefined"||typeof d.speedTitle!="undefined"){
			if(d.debug==true){
				e('speedView: '+d.speedView);
				e('speedRemove: '+d.speedRemove);
				e('altAnim: '+d.altAnim);
				e('speedTitle: '+d.speedTitle)
			}$(this).hover(function(){
				$(this).css({'z-index':'60'});
				$(this).find('img').addClass("hover").stop().animate({marginTop:'-80px',marginLeft:'-230px',top:'50%',left:'50%',width:'400px',height:'300px',padding:'20px'},d.speedView);
				if(d.altAnim==true){
					var a=$(this).find("img").attr("alt");
					if(a.length!=0){
						$(this).prepend('<span class="title" style="background:url(/login/images/title.gif) no-repeat center center;">'+a+'</span>');
						$('.title').animate({marginLeft:'-60px',marginTop:'290px'},d.speedTitle).css({'z-index':'50','position':'absolute','float':'left'})}}},
						function(){
							$(this).css({'z-index':'0'});
							$(this).find('img').removeClass("hover").stop().animate({marginTop:'0',marginLeft:'0',top:'0',left:'0',width:'300px',height:'200px',padding:'5px'},d.speedRemove);
							$(this).find('.title').remove()})}}})(jQuery);